package ice.dao.util;

import java.sql.SQLException;

/**
 * 实体库查询结果
 * 
 * @author abiao
 */
public class EntityQueryResult extends QueryResult {

    public EntityQueryResult(DBUtil dbUtil, String sql, Object[] params) {
        super(dbUtil, sql, params);
    }

    @Override
    protected String getRowKey(int columnIndex) throws SQLException {
        return getColumnName(columnIndex);
    }

    @Override
    protected void closeQueryResultHandle() {
        closeResultSet();
        closeStatement();
        closeConnection();
    }
}
